home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Experimental BBS Explossion 3
/
Experimental BBS Explossion III.iso
/
c
/
cujoct93.zip
/
1110070B
< prev
next >
Wrap
Text File
|
1993-07-16
|
990b
|
28 lines
#ifndef RANDM
# define RANDM
# define FS 400 /* Full Scale (graph ht) */
# define SPAN 400 /* Graph width */
# define OFFX 200 /* X-offset for viewport */
# define OFFY 460 /* Y-offset for viewport */
# define MAXWTLEN 15 /* Max no. filter wts. */
# define ESC 0x1b
# define K0 6.2832/nbin /* 2*PI/nbin */
# define uint unsigned int
# define RAND struct distribution
# define DIM(a) (sizeof(a)/sizeof(a[0]))
typedef uint index;
RAND
{ int nobjs; /* no. of distinct objects */
int npick; /* no. of random picks */
int (* prob)(); /* Pts to probability function */
index ev_indx; /* Index of current event */
int nbin; /* no. of distinct events */
int ndat; /* Accumulative no. of events */
float delta; /* Width of interval */
char **labls; /* Points to label array */
};
#endif